home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-03 | 487 b | 27 lines | [TEXT/R*ch] |
- // ---------------------------------------------------------
- // Code copied from problem statement
- // ---------------------------------------------------------
-
- enum { kDeny = 0,
- kAllow = 1
- };
-
- #ifdef __cplusplus
- extern "C" {
-
- #endif
- typedef struct Rule {
- long mask;
- long value;
- long allow;
- } Rule;
-
- long RouterRules( long allowedValues[],
- long numAllowedValues,
- long numBits,
- Rule rulesArray[],
- long maxRules );
- #ifdef __cplusplus
- }
- #endif
-